//专门用于操作 token 
//封装东西，是为了人代码分层，结构更清晰，以后方便修改
const key = 'geek-itheima'

//设置
export const setToken = (token)=>{
    localStorage.setItem(key, token)
}

//获取
export const getToken = () =>{

   return localStorage.getItem(key)
}

//删除
export const removeToken = () =>{

    return localStorage.removeItem(key)
} 